#!/bin/sh
load_port='51396'
new_port='8888'
for tag in $(docker images --format "{{.Repository}}:{{.Tag}}" | grep 51396)
do 
	new_tag=${tag/$load_port/$new_port}
	docker tag $tag $new_tag
	docker push $new_tag
	docker rmi $tag
	docker rmi $new_tag

done

